package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SmbUser implements Serializable {
	private long id, modifyBy, createdBy, userRole;
	private String userCode, userName, userPassword, phone, address;
	private int gender;
	private Date creationDate, modifyDate, birthday;
	private String rolename;
	private String age;
	private List<Address> addrs = new ArrayList<Address>();
	public List<Address> getAddrs() {
		return addrs;
	}

	public void setAddrs(List<Address> addrs) {
		this.addrs = addrs;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(long modifyBy) {
		this.modifyBy = modifyBy;
	}

	public long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}

	public long getUserRole() {
		return userRole;
	}

	public void setUserRole(long userRole) {
		this.userRole = userRole;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "SmbUser [id=" + id + ", modifyBy=" + modifyBy + ", createdBy=" + createdBy + ", userRole=" + userRole
				+ ", userCode=" + userCode + ", userName=" + userName + ", userPassword=" + userPassword + ", phone="
				+ phone + ", address=" + address + ", gender=" + gender + ", creationDate=" + creationDate
				+ ", modifyDate=" + modifyDate + ", birthday=" + birthday + ", rolename=" + rolename
				+ ", getRolename()=" + getRolename() + ", getId()=" + getId() + ", getModifyBy()=" + getModifyBy()
				+ ", getCreatedBy()=" + getCreatedBy() + ", getUserRole()=" + getUserRole() + ", getUserCode()="
				+ getUserCode() + ", getUserName()=" + getUserName() + ", getUserPassword()=" + getUserPassword()
				+ ", getPhone()=" + getPhone() + ", getAddress()=" + getAddress() + ", getGender()=" + getGender()
				+ ", getCreationDate()=" + getCreationDate() + ", getModifyDate()=" + getModifyDate()
				+ ", getBirthday()=" + getBirthday() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}
	
}
